<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>register</title>
    <link rel="stylesheet" href="css/register.css" type="text/css"></link>
    <script src="/js/jquery-3.3.1.min.js"></script>
</head>
<body>

<div class="loginTop">
    <a href="/"><img src="images/logo.png" height="112" width="194"
                     style="border: 0;"/></a>
</div>
<div class="loginbg">
    <div class="login">
        <div class="lo">

            <div class="toto">
                <span class="login-title"> 注册 </span> <a href="/login"
                                                         class="register_to_login">已有账号，立即登录</a>
            </div>

            <form name="register" id="registerForm" action="register" method="post">

                <label class="title-label">账号类型：</label> <span class="type_span">
                  <input type="radio" class="registerType" <#if identity?default('个人/讲师') == '个人/讲师'>checked</#if>
                               name="identity" id="registerType1" value="个人/讲师" /> <label
                            for="registerType1">个人/讲师</label>
               </span> <span class="type_span"> <input class="registerType"
                                                       type="radio" name="identity" id="registerType2" value="企业/机构" <#if identity?default('个人/讲师') == '企业/机构'>checked</#if> /> <label
                            for="registerType2">企业/机构</label>
               </span> <label class="title-label">手机号：</label><input type="text"
                                                                     class="phone_or_email" id="phone" name="phone"
                                                                     value="${phone?default('')}"
                                                                     placeholder="请输入手机号/邮箱"/>

                <p class="register_tip" id="phone_tip"></p>

                <label class="title-label">验证码：</label><img id="code" src="/code/image" style="margin: -8px 3px;width: 82px;" onclick="javascript:flash()" /><input type="text"
                                                                                                                                                                    class="identity_code" id="validCode" name="validCode"
                                                                                                                                                                    placeholder="请输入验证码"/>

                <p class="register_tip" id="validCode_tip">${errorMsg?default('')}</p>

                <label class="title-label">密码：</label><input type="password"
                                                             name="password"
                                                             class="password_register" id="password"
                                                             placeholder="请输入密码"/>

                <p class="register_tip" id="code_tips"></p>

                <label class="title-label">确认密码：</label><input type="password"
                                                               class="repassword" id="repassword"
                                                               placeholder="请再次输入密码"/>

                <p class="register_tip" id="re_code_tip"></p>

                <div class="law">
                    <input class="agreelaw" name="agreelaw" id="agreelaw" type="checkbox" value="1"
                           checked="checked"/> <font class="lawtext">我已阅读并同意<a
                                class="register_gz" href="rules.html">《IT易学网规则》</a><a
                                class="register_ys" href="policy.html">《IT易学网隐私政策》</a></font>
                </div>
                <p class="register_tip" id="law_tip"></p>
                <input type="button" value="立即注册" class="button_register"
                       id="button_register" onclick="registerHandle()" />

            </form>
        </div>
    </div>
</div>
<script src="/js/register.js"></script>
</body>
</html>]
